package com.brillilab.dao.mapper.global;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brillilab.domain.po.global.GlobalKit;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * GlobalKitMapper
 *
 * @author lj
 * @author lj
 */
public interface GlobalKitMapper extends BaseMapper<GlobalKit> {

    List<GlobalKit> searchCompanyByReagentType(@Param("reagentTypeId") Long reagentTypeId);

    List<Long> selectReagentTypeIdList();

    Integer batchRelateMethod(@Param("IdList")List<Long> idList,@Param("methodId")Long methodId);

    List<GlobalKit> selectListWithMethod(@Param("labId") Long labId,
                                         @Param("classify") Integer classify,
                                         @Param("reagentTypeId") Long reagentTypeId,
                                         @Param("methodTypeId") Long methodTypeId,
                                         @Param("keywords") String keywords);

    List<GlobalKit> selectTopNoMethodKit();

    int updateRelateInfo(@Param("list") List<GlobalKit> kits);
}
